package com.platform.common.enumstatus;

import java.io.Serializable;

/**
 * @author wangLc人员人员
 * 人员证书变量枚举
 */
public class AptitudeEnum {
	/**
	 * 证书/企业/人员状态(0未报审1.已报审待批准2已报审已批准3已报审不批准)
	 */
	public enum aptitudeStatus implements Serializable{
		/**
		 * 未报审
		 */
		WBS("0","未报审"),
		/**
		 *已报审待批准
		 */
		YBSDPZ("1","已报审"),
		/**
		 *已报审已批准
		 */
		YBSYPZ("2","已批准/启用"),
		/**
		 *禁用此单位
		 */
		JY("3","禁用"),
		/**
		 *已报审不批准
		 */
		YBSBPZ("4","未批准");
		 
		 String key;
		 String name; 
		 
		 private aptitudeStatus(String key, String name) {
				this.key = key;
				this.name = name;
	     }
		 
		 public String getKey() {
			return key;
		 }
		 public String getName() {
			return name;
		 }
	}
	
	
	
	/**
	 * 审核类型(0未报审1.已报审待批准2已报审已批准3已报审不批准)
	 */
	public enum aptitudeType implements Serializable{
		/**
		 * 企业
		 */
		ORG("1","企业"),
		/**
		 *个人
		 */
		USER("2","个人"),
		/**
		 *资质
		 */
		APTITUDE("3","资质");
		 
		 String key;
		 String name; 
		 
		 private aptitudeType(String key, String name) {
				this.key = key;
				this.name = name;
	     }
		 
		 public String getKey() {
			return key;
		 }
		 public String getName() {
			return name;
		 }
	}
	
	
	/**
	 * 获取单位类型名称
	 */
	public static String getStatusName(String key){
            String result = "无此值";
		for(aptitudeStatus roleTypePam:aptitudeStatus.values()){
			if(roleTypePam.getKey().equals(key)){
				result = roleTypePam.getName();
				break;
			}
		}
		return result;
	}
	
}
